package com.peanut.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @className: com.peanut.boot.controller-> TestRestCotroller
 * @description: 测试Rest 风格
 * @author: chenhs
 * @createDate: 2021-09-22 21:49
 * @version: 1.0
 */
@Slf4j
@RestController
public class TestRestCotroller {
    @GetMapping(value = "/restGet")
    public String restGet() {
        log.info("---------------------restGet");
        return "restGet";
    }
    @PostMapping (value = "/restPost")
    public String restPost() {
        log.info("--------------------- restPost");
        return "restPost";
    }
    @PutMapping(value = "/restPut")
    public String restPut() {
        log.info("--------------------- restPut");
        return "restPut";
    }
    @DeleteMapping(value = "/restDelete")
    public String restDelete() {
        log.info("--------------------- restDelete");
        return "restDelete";
    }
}
